package com.mujin.keji.collectionsystem.common;

/**
 * 室内装修
 */
public enum InnerDecorationEnum {
    new_home("new","新"),
    old("old","旧"),
    luxury("luxury","豪华"),
    ordinary("ordinary","普通"),
    simplicty("simplicty","简朴")
    ;

    /** 状态码 **/
    private final String code;
    /** 状态描述 **/
    private final String description;

    InnerDecorationEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public static String find(Integer origin) {
        if(origin == null){
            return null;
        }
        for (InnerDecorationEnum frs : InnerDecorationEnum.values()) {
            if ((frs.ordinal()+1) == origin) {
                return frs.getCode();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
